package com.japstudy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.japstudy.dao.IQuestionDao;
import com.japstudy.entity.Question;
import com.japstudy.service.IQuestionService;

@Service
public class QuestionServiceImpl implements IQuestionService {
	
	@Autowired
	private IQuestionDao iQuestionDao;

	@Override
	public int add(Question question) {
		return iQuestionDao.add(question);
	}

	@Override
	public List<Question> selectAll() {
		return iQuestionDao.selectAll();
	}

	@Override
	public Question selectById(String questionId) {
		return iQuestionDao.selectById(questionId);
	}

	@Override
	public List<Question> selectByTestPaperId(String testPaperId) {
		return iQuestionDao.selectByTestPaperId(testPaperId);
	}
}
